package leetcode.链表;

/**
 * @author: levi
 * @description: https://leetcode.cn/problems/delete-node-in-a-linked-list/
 * @date: 2022-9-7 0:08
 * @version: 1.0
 */
public class 删除链表中的节点_237 {
    public class ListNode {
      int val;
      ListNode next;
      ListNode(int x) {
          val = x;
      }
  }
    public void deleteNode(ListNode node) {
        node.val = node.next.val;
        node.next = node.next.next;
    }
}
